# define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void init(int arr1[], int sz, int set)
{
	for (int i = 0; i < sz; i++)
	{
		arr1[i] = set;
	}
}
void print_arr(int arr1[], int sz)
{
	for (int i = 0; i < sz; i++)
	{
		printf("%d ", arr1[i]);
	}
	printf("\n");
}
void reverse(int arr1[], int sz)
{
	int left = 0;
	int right = sz - 1;
	while (left < right)
	{
		int tmp = arr1[left];
		arr1[left] = arr1[right];
		arr1[right] = tmp;
		left++;
		right--;
	}
}
int main()
{
	int arr1[10] = { 1,1,1,1,1,2,2,2,2,2 };
	int sz = sizeof(arr1) / sizeof(arr1[0]);
	print_arr(arr1, sz);
	reverse(arr1, sz);
	print_arr(arr1, sz);
	init(arr1, sz, 0);
	print_arr(arr1, sz);
	return 0;
}